Message digesting functions
This section describes PKCS#11 message digesting functions.
C_DigestInit
This function operates as specified in PKCS#11.
Note
The user does not need to be logged on to access this function.
Synopsis
C_DigestInit(
CK_SESSION_HANDLE hSession,
CK_MECHANISM_PTR pMechanism
);
C_Digest
This function operates as specified in PKCS#11.
Synopsis
C_Digest(
CK_SESSION_HANDLE hSession,
CK_BYTE_PTR pData,
CK_ULONG ulDataLen,
CK_BYTE_PTR pDigest,
CK_ULONG_PTR pulDigestLen
);
C_DigestUpdate
This function operates as specified in PKCS#11.
Synopsis
C_DigestUpdate(
CK_SESSION_HANDLE hSession,
CK_BYTE_PTR pPart,
CK_ULONG ulPartLen
);
C_DigestKey
This function operates as specified in PKCS#11, although it can be used on any PKCS#11 object.
If the CKF_LOGIN_REQUIRED
flag is set for the Token associated with the provided session the session state must be either CKS_RW_USER_FUNCTIONS
or CKS_RO_USER_FUNCTIONS
,otherwise the error result CKR_USER_NOT_LOGGED_IN
is returned.
Synopsis
C_DigestKey(
CK_SESSION_HANDLE hSession,
CK_OBJECT_HANDLE hKey
);
C_DigestFinal
This function operates as specified in PKCS#11.
Synopsis
C_DigestFinal(
CK_SESSION_HANDLE hSession,
CK_BYTE_PTR pDigest,
CK_ULONG_PTR pulDigestLen
);